
  <!DOCTYPE HTML>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
  
    <title>Category: js什锦 | Here. There.</title>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=3, minimum-scale=1">
    
    <meta name="author" content="被删">
    
    <meta name="description" content="html5, js, angularjs, jQuery, 前端">
    
    
    
    
    <link rel="alternate" href="/atom.xml" title="Here. There." type="application/atom+xml">
    
    
    <link rel="icon" href="/img/favicon.ico">
    
    
    <link rel="apple-touch-icon" href="/img/pacman.jpg">
    <link rel="apple-touch-icon-precomposed" href="/img/pacman.jpg">
    
    <link rel="stylesheet" href="/css/style.css">
    
<script type="text/javascript">
var _hmt = _hmt || [];
(function() {
  var hm = document.createElement("script");
  hm.src = "//hm.baidu.com/hm.js?3d902de4a19cf2bf179534ffd2dd7b7f";
  var s = document.getElementsByTagName("script")[0]; 
  s.parentNode.insertBefore(hm, s);
})();
</script>

</head>

    <body>
      <header>
        <div>
		
			<div id="imglogo">
				<a href="/"><img src="/img/sun.png" alt="Here. There." title="Here. There."/></a>
			</div>
			
			<div id="textlogo">
				<h1 class="site-name"><a href="/" title="Here. There.">Here. There.</a></h1>
				<h2 class="blog-motto">Love ice cream. Love sunshine. Love life. Love the world. Love myself. Love you.</h2>
			</div>
			<div class="navbar"><a class="navbutton navmobile" href="#" title="菜单">
			</a></div>
			<nav class="animated">
				<ul>
					
						<li><a href="/">首页</a></li>
					
						<li><a href="https://github.com/godbasin/godbasin.github.io">所有文章</a></li>
					
						<li><a href="/archives">归档</a></li>
					
						<li><a href="/categories">分类</a></li>
					
						<li><a href="/about">关于我</a></li>
					
				</ul>
			</nav>			
</div>

      </header>
      <div id="container">
        

<div class="archive-title" >
  <h2 class="category-icon">js什锦</h2>
  
</div>
<div id="main" class="all-list-box clearfix"><!--class: archive-part-->
  <div id="archive-page" class=""><!--class: all-list-box-->

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2017/07/15/merge-sort/" title="算法导论之js实现--归并排序" itemprop="url">
  
    <h1 itemprop="name">算法导论之js实现--归并排序</h1>
    
     
       <p itemprop="description" >归并排序的javascript实现。</p>
      
    
    <time datetime="2017-07-15T03:43:58.000Z" itemprop="datePublished">2017-07-15</time>
  </a>
</section>

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2017/07/09/insertion-sort/" title="算法导论之js实现--插入排序" itemprop="url">
  
    <h1 itemprop="name">算法导论之js实现--插入排序</h1>
    
     
       <p itemprop="description" >插入排序的javascript实现。</p>
      
    
    <time datetime="2017-07-09T03:15:36.000Z" itemprop="datePublished">2017-07-09</time>
  </a>
</section>

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2017/07/08/counting-sort/" title="算法导论之js实现--计数排序" itemprop="url">
  
    <h1 itemprop="name">算法导论之js实现--计数排序</h1>
    
     
       <p itemprop="description" >计数排序的javascript实现。</p>
      
    
    <time datetime="2017-07-08T12:35:26.000Z" itemprop="datePublished">2017-07-08</time>
  </a>
</section>

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2017/07/02/bubble-sort/" title="算法导论之js实现--冒泡排序" itemprop="url">
  
    <h1 itemprop="name">算法导论之js实现--冒泡排序</h1>
    
     
       <p itemprop="description" >冒泡排序的javascript实现。</p>
      
    
    <time datetime="2017-07-02T03:11:30.000Z" itemprop="datePublished">2017-07-02</time>
  </a>
</section>

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2017/05/26/es6-es7-interesting-feature/" title="ES6/ES7好玩实用的特性介绍" itemprop="url">
  
    <h1 itemprop="name">ES6/ES7好玩实用的特性介绍</h1>
    
     
       <p itemprop="description" >本文介绍一些ES6/ES7好玩实用又简单的特性，或许对写代码的效率也有一定帮助噢。</p>
      
    
    <time datetime="2017-05-26T14:09:10.000Z" itemprop="datePublished">2017-05-26</time>
  </a>
</section>

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2016/11/13/json-to-html-2-use-object/" title="将json输出为html(二)：js数据类型判断实现" itemprop="url">
  
    <h1 itemprop="name">将json输出为html(二)：js数据类型判断实现</h1>
    
     
       <p itemprop="description" >最近项目需要用到将json格式化展示在html页面中，在这里简答整理一下其中逻辑实现，将json转换为对象Object然后判断数据类型进行处理。</p>
      
    
    <time datetime="2016-11-12T16:10:57.000Z" itemprop="datePublished">2016-11-13</time>
  </a>
</section>

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2016/11/13/json-to-html-1-use-string-regular/" title="将json输出为html(一)：字符串正则匹配" itemprop="url">
  
    <h1 itemprop="name">将json输出为html(一)：字符串正则匹配</h1>
    
     
       <p itemprop="description" >最近项目需要用到将json格式化展示在html页面中，在这里简答整理一下其中逻辑实现，将json转换为字符串然后用正则匹配。</p>
      
    
    <time datetime="2016-11-12T16:09:01.000Z" itemprop="datePublished">2016-11-13</time>
  </a>
</section>

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2016/07/03/js-closure/" title="谈谈js的闭包" itemprop="url">
  
    <h1 itemprop="name">谈谈js的闭包</h1>
    
     
       <p itemprop="description" >上一篇我们讲js的this，里面提到了执行环境，今天我们就结合执行环境一起讲一下闭包吧。</p>
      
    
    <time datetime="2016-07-02T20:21:32.000Z" itemprop="datePublished">2016-07-03</time>
  </a>
</section>

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2016/07/02/js-this/" title="谈谈js的this" itemprop="url">
  
    <h1 itemprop="name">谈谈js的this</h1>
    
     
       <p itemprop="description" >有个同事一直问我代码里面为啥要return this。今天就简单聊聊关于javascript中的this吧。</p>
      
    
    <time datetime="2016-07-02T07:32:32.000Z" itemprop="datePublished">2016-07-02</time>
  </a>
</section>

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2016/06/19/drag-and-drop/" title="做一个拖放功能的自定义页面" itemprop="url">
  
    <h1 itemprop="name">做一个拖放功能的自定义页面</h1>
    
     
       <p itemprop="description" >以前写过一个拖放功能的页面，用来搭建自定义移动端页面。本文介绍实现方法。</p>
      
    
    <time datetime="2016-06-19T07:42:49.000Z" itemprop="datePublished">2016-06-19</time>
  </a>
</section>

  <section class="post" itemscope itemprop="blogPost">
  
    <a href="/2016/06/19/position-object/" title="js判断某个位置是否特定元素" itemprop="url">
  
    <h1 itemprop="name">js判断某个位置是否特定元素</h1>
    
     
       <p itemprop="description" >需要获取鼠标所在位置是否为某种特定元素，然后进行相关处理。本文介绍一种实现方法。</p>
      
    
    <time datetime="2016-06-18T16:15:36.000Z" itemprop="datePublished">2016-06-19</time>
  </a>
</section>


  <nav id="page-nav" class="clearfix archive-nav">
    <a class="extend prev" rel="prev" href="/categories/js什锦/">&laquo; Prev</a><a class="page-number" href="/categories/js什锦/">1</a><span class="page-number current">2</span>
  </nav>

  </div>
</div>

      </div>
      <footer><div id="footer" >
	
	<section class="info">
		<p> 即使梦想再小，却很伟大 ^_^ </p>
	</section>
	 
		<p class="copyright">Powered by <a href="http://hexo.io" target="_blank" title="hexo">hexo</a> and Theme by <a href="https://github.com/A-limon/pacman" target="_blank" title="Pacman">Pacman</a> © 2019 
		
		<a href="https://godbasin.github.io" target="_blank" title="被删">被删</a>
		
		</p>
</div>
</footer>
      <script src="/js/jquery-2.1.0.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){ 
  $('.navbar').click(function(){
    $('header nav').toggleClass('shownav');
  });
  var myWidth = 0;
  function getSize(){
    if( typeof( window.innerWidth ) == 'number' ) {
      myWidth = window.innerWidth;
    } else if( document.documentElement && document.documentElement.clientWidth) {
      myWidth = document.documentElement.clientWidth;
    };
  };
  var m = $('#main'),
      a = $('#asidepart'),
      c = $('.closeaside'),
      o = $('.openaside');
  $(window).resize(function(){
    getSize(); 
    if (myWidth >= 1024) {
      $('header nav').removeClass('shownav');
    }else
    {
      m.removeClass('moveMain');
      a.css('display', 'block').removeClass('fadeOut');
      o.css('display', 'none');
        
    }
  });
  c.click(function(){
    a.addClass('fadeOut').css('display', 'none');
    o.css('display', 'block').addClass('fadeIn');
    m.addClass('moveMain');
  });
  o.click(function(){
    o.css('display', 'none').removeClass('beforeFadeIn');
    a.css('display', 'block').removeClass('fadeOut').addClass('fadeIn');      
    m.removeClass('moveMain');
  });
  $(window).scroll(function(){
    o.css("top",Math.max(80,260-$(this).scrollTop()));
  });
});
</script>







    </body>
   </html>
